package com.wing.storage.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 产品库存详细
 *
 * @author xiayang
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("pro_product_inventory_detail")
public class ProductInventoryDetail extends BaseEntity<ProductInventoryDetail> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 物料ID
     */
    private Long productDetailId;

    /**
     * 物料编码
     */
    @TableField(exist = false)
    private String skuCode;

    /**
     * 物料名称
     */
    @TableField(exist = false)
    private String skuName;

    /**
     * 物料规格
     */
    @TableField(exist = false)
    private String skuSpec;

    /**
     * 基础单位
     */
    @TableField(exist = false)
    private Long baseUnit;

    /**
     * 基础单位名称
     */
    @TableField(exist = false)
    private String baseUnitName;

    /**
     * 主计量方式
     */
    @TableField(exist = false)
    private String mainCalWay;

    /**
     * 主计量方式名称
     */
    @TableField(exist = false)
    private String mainCalWayName;

    /**
     * 主计量单位
     */
    @TableField(exist = false)
    private Long mainUnitId;

    /**
     * 主计量单位名称
     */
    @TableField(exist = false)
    private String mainUnitName;

    /**
     * 主计量单位换算率
     */
    @TableField(exist = false)
    private String mainUnitRate;

    /**
     * 辅计量方式
     */
    @TableField(exist = false)
    private String subCalWay;

    /**
     * 辅计量方式名称
     */
    @TableField(exist = false)
    private String subCalWayName;

    /**
     * 辅计量单位
     */
    @TableField(exist = false)
    private Long subUnitId;

    /**
     * 辅计量单位名称
     */
    @TableField(exist = false)
    private String subUnitName;

    /**
     * 辅计量单位换算率
     */
    @TableField(exist = false)
    private String subUnitRate;

    /**
     * 最新成本
     */
    @TableField(exist = false)
    private BigDecimal currentCostPrice;

    /**
     * 产品库存ID
     */
    private Long productInventoryId;

    /**
     * 仓库类型ID
     */
    private Long warehouseTypeId;

    /**
     * 仓库类型名称
     */
    @TableField(exist = false)
    private String warehouseTypeName;

    /**
     * 仓库ID
     */
    private Long warehouseId;

    /**
     * 仓库名称
     */
    @TableField(exist = false)
    private String warehouseName;

    /**
     * 仓库库区ID
     */
    private Long warehouseAreaId;

    /**
     * 库区名称
     */
    @TableField(exist = false)
    private String warehouseAreaName;

    /**
     * 库区货架ID
     */
    private Long warehouseShelfId;

    /**
     * 库区货架名称
     */
    @TableField(exist = false)
    private String warehouseShelfName;

    /**
     * 库位ID
     */
    private Long warehouseShelfSpaceId;

    /**
     * 库位编码
     */
    @TableField(exist = false)
    private String warehouseShelfSpaceCode;

    /**
     * 料箱ID
     */
    private Long palletBoxId;

    /**
     * 料箱编码
     */
    @TableField(exist = false)
    private String palletBoxCode;

    /**
     * 数量
     */
    private BigDecimal quantity;

    /**
     * 出入库类型
     */
    @TableField(exist = false)
    private Long inoutType;

    /**
     * 出入库作业单
     */
    @TableField(exist = false)
    private Long inoutWorkJob;

}
